package com.lzh.common.utils;

import com.lzh.common.ex.BusinessException;

public class Assert {

    /**
     * 判断rs的值是否为
     * @param rs    操作结果
     * @param msg   错误消息描述
     */
    public static void isZerp(int rs,String msg) {
        if (rs==0){
            throw new BusinessException(msg);
        }
    }
}
